<!--
 * @Author: zhuxiaoyi
 * @Date: 2023-12-21 10:26:02
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2023-12-21 12:47:03
 * @Description: 
-->
<template>
    <el-row>
        <el-col :span="24">
            <div class="collapse-container">
                <el-collapse v-model="activeName">
                    <el-collapse-item :title="item.name" :name="item.name" v-for="item, index in data" :key="index">
                        <el-card class="box-card">
                            <template #header>
                                <div class="card-header">
                                    <span> </span>
                                    <div>
                                        <el-button class="button" type="primary">新增</el-button>
                                        <el-button class="button" type="success">编辑</el-button>
                                    </div>
                                </div>
                            </template>
                            <div style="display: flex;flex-wrap: wrap;padding: 20px; ">
                                <div v-for="children, sort in item.children" :key="sort"
                                    style="margin-right:30px;margin-top: 20px;">
                                    <span
                                        :style="`color:${children.color};font-size:${parseInt(children.fontSize) + 3}px;font-weight:${children.weight};cursor:pointer;border:1px solid ${children.color};padding:5px`">{{
                                            children.name }}</span>
                                </div>
                            </div>
                            <template #footer>
                                <el-button class="button" type="danger">删除</el-button>
                            </template>
                        </el-card>

                    </el-collapse-item>
                </el-collapse>
            </div>
        </el-col>
    </el-row>
</template>
<script setup>
import { defineComponent, reactive, ref, toRefs, onMounted, watch } from "vue";
let viewHeight = ref(window.innerHeight);
let viewwidth = ref(window.innerWidth);
let activeName = "SWAT模型"
let data = [
    {
        name: "SWAT模型",
        children: [
            {
                name: "SWAT",
                fontSize: "12",
                color: "#cccfff",
                weight: "500",
            },
            {
                name: "SWAT水文模型",
                fontSize: "12",
                color: "#aaddff",
                weight: "600",
            },
            {
                name: "soil and water assessment tool",
                fontSize: "10",
                color: "#99ccff",
                weight: "500",
            },
            {
                name: "流域SWAT模型",
                fontSize: "19",
                color: "#88bbff",
                weight: "500",
            },
            {
                name: "SWAT分布式水文模型",
                fontSize: "14",
                color: "#77aaff",
                weight: "600",
            },
            {
                name: "分布式水文模型SWAT",
                fontSize: "15",
                color: "#6699ff",
                weight: "600",
            },
            {
                name: "SWAT model",
                fontSize: "8",
                color: "#5588ff",
                weight: "600",
            },
            {
                name: "Soil and Water Assessment Tool",
                fontSize: "24",
                color: "#4477ff",
                weight: "500",
            },
            {
                name: "SWAT半分布式水文模型",
                fontSize: "18",
                color: "#3366ff",
                weight: "600",
            },
            {
                name: "分布式SWAT模型",
                fontSize: "20",
                color: "#2255ff",
                weight: "600",
            },
            {
                name: "流域尺度模型Soil and Water Assessment Tool",
                fontSize: "12",
                color: "#1144ff",
                weight: "600",
            },
            {
                name: "SWAT watershed hydrological model",
                fontSize: "6",
                color: "#0033ff",
                weight: "600",
            },
            {
                name: "Soil ＆ Water Assessment Tool",
                fontSize: "17",
                color: "#0022ee",
                weight: "500",
            },
            {
                name: "SWAT分布式模型",
                fontSize: "16",
                color: "#0011dd",
                weight: "500",
            },
            {
                name: "hydrological model-SWAT",
                fontSize: "18",
                color: "#0000cc",
                weight: "600",
            },
            {
                name: "SWAT流域水文模型",
                fontSize: "13",
                color: "#0000bb",
                weight: "600",
            },
        ],
    },
    {
        name: "VIC模型",
        children: [
            {
                name: "Variable InfiltrationCapacity Macroscalehydrology model",
                fontSize: "18",
                color: "#aaddff",
                weight: "600",
            },
            {
                name: "VIC可变下渗能力水文模型",
                fontSize: "11",
                color: "#cccfff",
                weight: "500",
            },
            {
                name: "可变下渗容量水文模型（VIC）",
                fontSize: "10",
                color: "#aaddff",
                weight: "600",
            },
            {
                name: "可变下渗能力水文模型 VIC",
                fontSize: "8",
                color: "#99ccff",
                weight: "600",
            },
            {
                name: "大尺度陆面水文模型VIC模型",
                fontSize: "19",
                color: "#88bbff",
                weight: "500",
            },
            {
                name: "VIC model",
                fontSize: "24",
                color: "#3366ff",
                weight: "600",
            },
            {
                name: "VIC水文模型",
                fontSize: "13",
                color: "#1144ff",
                weight: "500",
            },
            {
                name: "VIC大尺度分布式水文模型",
                fontSize: "6",
                color: "#0022ee",
                weight: "600",
            },
            {
                name: "VIC分布式水文模型",
                fontSize: "8",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "分布式水文模型VIC",
                fontSize: "18",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "Variable Infiltration Capacity",
                fontSize: "16",
                color: "#0000bb",
                weight: "500",
            },
            {
                name: "Variable Infiltration Capacity 水文模型",
                fontSize: "19",
                color: "#ffaacb",
                weight: "600",
            },
            {
                name: "VIC大尺度陆面水文模型",
                fontSize: "21",
                color: "#0033ff",
                weight: "500",
            },
            {
                name: "VIC distributed hydrological model",
                fontSize: "6",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "VIC 陆面水文模型",
                fontSize: "8",
                color: "#ff99aa",
                weight: "600",
            },
            {
                name: "VIC hydrological model",
                fontSize: "18",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "VIC 大尺度水文模型",
                fontSize: "18",
                color: "#cccfff",
                weight: "500",
            },
            {
                name: "大尺度半分布式水文模型VIC",
                fontSize: "8",
                color: "#ffaacb",
                weight: "500",
            },
            {
                name: "可变下渗能力大尺度分布式水文模型 ",
                fontSize: "10",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "水文模型VIC",
                fontSize: "4",
                color: "#ff99aa",
                weight: "600",
            },
        ],
    },
    {
        name: "新安江模型",
        children: [
            {
                name: "新安江水文模型",
                fontSize: "8",
                color: "#0011dd",
                weight: "600",
            },
            {
                name: "新安江流域水文模型",
                fontSize: "18",
                color: "#1144ff",
                weight: "500",
            },
            {
                name: "Xin’anjiang Model",
                fontSize: "15",
                color: "#0011dd",
                weight: "600",
            },
            {
                name: "Xin’anjiang hydrology model",
                fontSize: "10",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "分布式新安江水文模型",
                fontSize: "6",
                color: "#0011dd",
                weight: "500",
            },
            {
                name: "分布式新安江模型",
                fontSize: "8",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "新安江",
                fontSize: "24",
                color: "#4477ff",
                weight: "600",
            },
            {
                name: "新安江月水文模型",
                fontSize: "14",
                color: "#0011dd",
                weight: "600",
            },
            {
                name: "集总式概念性水文模型新安江模型",
                fontSize: "12",
                color: "#cccfff",
                weight: "500",
            },
            {
                name: "新安江三水源模型",
                fontSize: "13",
                color: "#88bbff",
                weight: "600",
            },
            {
                name: "新安江预报模型",
                fontSize: "17",
                color: "#ffccdd",
                weight: "600",
            },
            {
                name: "新安江径流预报模型",
                fontSize: "14",
                color: "#3366ff",
                weight: "600",
            },
            {
                name: "新安江三水源径流预报模型",
                fontSize: "16",
                color: "#ff99aa",
                weight: "500",
            },
            {
                name: "新安江日模型",
                fontSize: "18",
                color: "#ffccdd",
                weight: "600",
            },
        ],
    },
    {
        name: "CASC2D模型",
        children: [
            {
                name: "CASC2D",
                fontSize: "8",
                color: "#cccfff",
                weight: "500",
            },
            {
                name: "CASCade of planes，2-Dimensional",
                fontSize: "18",
                color: "#ffccdd",
                weight: "500",
            },
            {
                name: "分布式模型CASC2D",
                fontSize: "11",
                color: "#0000cc",
                weight: "500",
            },
            {
                name: "CASC2D Model",
                fontSize: "10",
                color: "#3366ff",
                weight: "600",
            },
        ],
    },
    {
        name: "TOPMODEL模型",
        children: [
            {
                name: "TOPMODEL",
                fontSize: "6",
                color: "#4477ff",
                weight: "500",
            },
            {
                name: "TOPMODEL Model",
                fontSize: "24",
                color: "#0033ff",
                weight: "500",
            },
            {
                name: "Top graphy based hydrological Model",
                fontSize: "15",
                color: "#0033ff",
                weight: "600",
            },
            {
                name: "TOPMODEL 分布式水文模型",
                fontSize: "17",
                color: "#ffccdd",
                weight: "600",
            },
        ],
    },
    {
        name: "LBMGTOPMODEL模型",
        children: [
            {
                name: "LBMGTOPMODEL",
                fontSize: "18",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "分布式LBMGTOPMODEL",
                fontSize: "10",
                color: "#5588ff",
                weight: "500",
            },
        ],
    },
    {
        name: "NAM模型",
        children: [
            {
                name: "NAM Hydrological Model",
                fontSize: "10",
                color: "#6699ff",
                weight: "600",
            },
            {
                name: "NAM",
                fontSize: "18",
                color: "#3366ff",
                weight: "600",
            },
            {
                name: "降雨径流模型( NAM)",
                fontSize: "15",
                color: "#ffbbcc",
                weight: "600",
            },
            {
                name: "NAM model",
                fontSize: "10",
                color: "#0022ee",
                weight: "500",
            },
            {
                name: "流域水文模型NAM模型",
                fontSize: "11",
                color: "#ff99aa",
                weight: "500",
            },
        ],
    },
    {
        name: "GR3模型",
        children: [
            {
                name: "GR3",
                fontSize: "10",
                color: "#cccfff",
                weight: "600",
            },
            {
                name: "GR3降雨径流模型",
                fontSize: "18",
                color: "#0000cc",
                weight: "600",
            },
            {
                name: "GR3 Model",
                fontSize: "12",
                color: "#1144ff",
                weight: "600",
            },
        ],
    },
    {
        name: "GR3模型",
        children: [
            {
                name: "GR4J模型（日模型）",
                fontSize: "10",
                color: "#0022ee",
                weight: "500",
            },
            {
                name: "GR2M模型（月模型）",
                fontSize: "8",
                color: "#3366ff",
                weight: "500",
            },
            {
                name: "GR1A模型（年模型）",
                fontSize: "24",
                color: "#1144ff",
                weight: "600",
            },
            {
                name: "mode＇le du ge'nie rural",
                fontSize: "19",
                color: "#ffaacb",
                weight: "500",
            },
            {
                name: "Ge′nie rural",
                fontSize: "18",
                color: "#ffccdd",
                weight: "500",
            },
        ],
    },
];
</script>

<style lang="scss" scoped>
.collapse-container {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .text {
        font-size: 14px;
    }

    .item {
        margin-bottom: 18px;
    }

}
</style>
<style lang="scss"></style>
